# 装饰器
def wrapper(fn):
    def inner():
        print('正在计算')
        return fn()

    return inner

@wrapper  # add = wrapper(add)
def add():
    return 1 + 2


print(add())
